package com.google.gwt.sample.hello.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface ServicePrint extends RemoteService {

	public static final String SERVICE_URI = "ServicePrint";

	public static class Util {

		public static ServicePrintAsync getInstance() {

			ServicePrintAsync instance = (ServicePrintAsync) GWT
					.create(ServicePrint.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}
	
	public String sayHello(String hello);

}
